package com.lzhl.buildjar.util;

import java.io.File;
import java.util.List;

/**
 * @author 李柱良(@柱子的日月)
 * @date 2015/11/25
 */
public class EASUtils {
    public static List<String> loadBuildJarSchemes() {
        return FileUtils.loadFile("./dat/buildjar.txt");
    }
    public static void saveBuildJarSchemes(List<String> schemes) {
        FileUtils.saveFile(schemes, "./dat/buildjar.txt");
    }
    public static List<String> loadBuildJarScheme(String name) {
        return FileUtils.loadFile("./dat/buildjar/" + name + ".txt");
    }
    public static void saveBuildJarScheme(List<String> datas, String name) {
        FileUtils.saveFile(datas, "./dat/buildjar/" + name + ".txt");
    }
    public static void deleteBuildJarScheme(String name) {
        FileUtils.deleteDir(new File("./dat/buildjar/" + name + ".txt"));
    }
}
